package com.boco.modules.fdoc.web.sigserverpack;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.boco.common.persistence.Page;
import com.boco.common.web.ServletController;
import com.boco.modules.fdoc.model.ServicepackDetailsEntity;
import com.boco.modules.fdoc.service.ServicepackDetailsService;
import com.boco.modules.fdoc.vo.SigServicepackVo;

@Controller
@RequestMapping(value = "/sigserverpack")
public class OpenAddSigSvsPackCtr extends ServletController{

	@Resource
	ServicepackDetailsService servicepackDetailsService;

	@RequestMapping(value = "/openAddSigSvsPack", method = RequestMethod.POST)
	public String openEditSvsPack(SigServicepackVo vo,HttpServletRequest request, HttpServletResponse response, Model model){
		Page<ServicepackDetailsEntity> dtsPage=new Page<ServicepackDetailsEntity>(request,response);
		dtsPage = servicepackDetailsService.getSvsPackDtlList(dtsPage);
		request.setAttribute("dtsPage", dtsPage);
		
		return "/sigsvspack/sigsvspackadd";
	}
	
}
